type ID = number | string
const id1: ID = 1
const id2: ID = '2'



// 交叉类型： 两种（多种）都要同时满足

type newType = string & number // never


interface IKun {
    name: string,
    age: number
}

interface IFans {
    name: string,
    sing: () => void
}

const ikunFans: IKun & IFans = {
    name: "蔡徐坤",
    age: 30,
    sing() {
        console.log(this.name);
    },
}


export { }